GLOBAL.setmetatable(env, { __index = function(t, k) return GLOBAL.rawget(GLOBAL, k) end })
local _G = GLOBAL

-- 2本科技解锁
-- 20木头，2石砖，1便便桶，1蜂巢
AddRecipe2("nuts_beebox", {
        Ingredient("log", 20),
        Ingredient("cutstone", 2),
        Ingredient("fertilizer", 1),
        Ingredient("honeycomb", 1),
    },
    TECH.SCIENCE_TWO, {
        placer = "nuts_beebox_placer",
    }, {
        "GARDENING", "STRUCTURES"
    })

if not _G.NUTS_SETS.ENABLEDMODS["tastefun"] then
    -- 咖啡粉
    AddRecipe2(
        "spice_tf_coffee_powder",
        { Ingredient("pinecone", 5) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 3,
            nounlock = true
        }
    )
    AddRecipe2(
        "spice_tf_coffee_powder_copy1",
        { Ingredient("pinecone", 10) },
        TECH.FOODPROCESSING_ONE,
        {
            builder_tag = "professionalchef",
            numtogive = 7,
            nounlock = true,
            product = "spice_tf_coffee_powder",
            image = "spice_tf_coffee_powder.tex",
        }
    )
    AddRecipe2(
        "spice_tf_coffee_powder_copy2",
        { Ingredient("pinecone", 5) },
        TECH.CARPENTRY_TWO,
        {
            nounlock = true,
            sg_state = "give",
            numtogive = 3,
            product = "spice_tf_coffee_powder",
            image = "spice_tf_coffee_powder.tex",
        }
    )
    AddRecipe2(
        "spice_tf_coffee_powder_copy3",
        { Ingredient("pinecone", 10) },
        TECH.CARPENTRY_TWO,
        {
            nounlock = true,
            sg_state = "give",
            numtogive = 7,
            product = "spice_tf_coffee_powder",
            image = "spice_tf_coffee_powder.tex",
        }
    )
end
